package com.atguigu.serviceedu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-order")//用微服务的谁
public interface OrderClient {

    //根据课程id、用户id查询购买情况
    @GetMapping("/orderservice/order/isPayCourse/{cid}/{mid}")
    public boolean isPayCourse(@PathVariable("cid") String cid,
                               @PathVariable("mid") String mid);
}
